package com.htj.erp.model;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.AccessType;
import org.springframework.data.annotation.AccessType.Type;


@MappedSuperclass
@AccessType(Type.FIELD)
public abstract class BaseEntity implements IdEntity {
	
	/**
     * serialVersionUID:TODO（用一句话描述这个变量表示什么）
     *
     * @since 1.0.0
     */
    
    private static final long serialVersionUID = -5045029439975617040L;
    @Column(name = "id")
	@GeneratedValue(generator = "unique-id"  )
    @GenericGenerator(name = "unique-id", strategy = "com.kedacom.security.util.UniqueIdGenerator")
    @Id
	protected Long id;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
 

}

